﻿<Window x:Class="UXTaskManager.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:views="clr-namespace:TaskManager.View;assembly=TaskManager"
        Title="Async Task Manager" Width="600" Height="450">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Border Margin="5" HorizontalAlignment="Center" BorderThickness="1" BorderBrush="#FF1D1D1D" CornerRadius="5"
                VerticalAlignment="Top">
            <Grid Margin="5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="5" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition Height="10" />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>

                <TextBlock Text="Start simple task " VerticalAlignment="Center" />
                <Button Grid.Column="2" Content="GO !" Command="{Binding StartSimpleTaskCommand}" VerticalAlignment="Center" />

                <TextBlock Grid.Row="1" Text="Start repetitive task " VerticalAlignment="Center" />
                <Button Grid.Column="2" Grid.Row="1" Content="GO !" Command="{Binding StartTickTaskCommand}" VerticalAlignment="Center" />

                <TextBlock Grid.Row="2" Text="Start error task " VerticalAlignment="Center" />
                <Button Grid.Column="2" Grid.Row="2" Content="GO !" Command="{Binding StartErrorTaskCommand}" VerticalAlignment="Center" />

                <TextBlock Grid.Row="4" Text="Text to copy" />
                <TextBox Grid.Row="4" Grid.Column="2" Text="{Binding TextToCopy}" Width="100" />

                <TextBlock Grid.Row="5" Text="Result " />
                <TextBlock Grid.Row="5" Grid.Column="2" Text="{Binding Text}" />
            </Grid>
        </Border>

        <GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" Height="3" VerticalAlignment="Center"/>

        <views:TaskManagerView Grid.Row="2" DataContext="{Binding TaskManager}" />
    </Grid>
</Window>
